package com.vedana.bankmobile.remoting;

import java.util.List;

import com.vedana.bankmobile.services.BankMobileServiceImpl;
import com.vedana.bankmobile.services.BankMobileService;
import com.vedana.bankmobile.shared.Account;
import com.vedana.bankmobile.shared.Customer;
import com.vedana.bankmobile.shared.Operation;

/**
 * BankMobile service : Blaze-DS adapter
 * 
 * @author Didier MOISE
 *
 */
public class BankMobileRemotingService {
	private BankMobileService service = new BankMobileServiceImpl();
	
	public List<Customer> getCustomerList(String userId) {
		return service.getCustomerList(userId);
	}
	
	/**
	 * Get all accounts for a customer
	 * 
	 * @param customerId Customer ID
	 * @return Account list
	 */
	public List<Account> getAccountList(long customerId) {
		return service.getAccountList(customerId);
	}
	
	/**
	 * Get the complete list of operations for an account.
	 * 
	 * @param accountId  Account ID
	 * @return Operation list
	 */
	public List<Operation> getOperationList(long accountId) {
		return service.getAllOperations(accountId);
	}
}
